package com.th.supcom.pds.dispensedrug.client.service;

import java.util.List;

import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.th.supcom.pds.internal.client.model.ResultModel;
import com.th.supcom.pds.sortingdrug.client.model.PdsPrescDetailInfoModel;

/**
 * PdsPrescDetail 异步接口.
 * 
 * 处方明细.
 */
public interface PdsSupplyDetailRpcAsync
{
    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    void addPdsPrescDetail (PdsPrescDetailInfoModel model, AsyncCallback <Void> callback);

    void getPdsPrescDetailById (Long id, AsyncCallback <PdsPrescDetailInfoModel> callback);

    void getPdsPrescDetailList (PdsPrescDetailInfoModel model, AsyncCallback <List <PdsPrescDetailInfoModel>> callback);

    void getPdsPrescDetailListWithPaging (PagingLoadConfig config, AsyncCallback <PagingLoadResult <PdsPrescDetailInfoModel>> callback);

    void getPrescDetailByPrescAndRcpt (String rcptNo, String prescNo, AsyncCallback <List <PdsPrescDetailInfoModel>> callback);

    void modifyPdsPrescDetail (List <PdsPrescDetailInfoModel> model, AsyncCallback <Void> callback);

    void removePdsPrescDetail (Long id, AsyncCallback <Void> callback);
}